package com.leyou.item.service.service;

import com.leyou.common.bean.PageResult;
import com.leyou.common.bean.Result;
import com.leyou.item.inter.dto.BrandPageDTO;
import com.leyou.item.inter.dto.BrandUpdateDTO;
import com.leyou.item.inter.pojo.Brand;

import java.util.List;

/**
 * @author zqq
 * @ClassName BrandServiceImpl
 * @Description
 * @date 2020/3/6-15:22
 */
public interface BrandService {

    /**
     * @Title: queryBrandsByPage
     * @Description: 根据查询条件分页并排序查询品牌信息
     * @author: zqq
     * @param dto 参数类
     * @return: com.leyou.common.bean.Result<com.leyou.common.bean.PageResult<com.leyou.item.inter.pojo.Brand>>
     * @createTime: 2020-03-06 15:31
     * @version: v.1.0
     */
    Result<PageResult<Brand>> queryBrandsByPage(BrandPageDTO dto);


    /**
     * @Title: updateBrand
     * @Description: 新增或者修改品牌
     * @author: zqq
     * @param dto 参数类
     * @return: com.leyou.common.bean.Result
     * @createTime: 2020-03-06 16:36
     * @version: v.1.0
     */
    Result updateBrand(BrandUpdateDTO dto,List<Long> cids);

    /**
     * @Title: queryBrandsByCid
     * @Description: 根据商品分类id，查询对应品牌
     * @author: zqq
     * @param cid 商品分类id
     * @return: com.leyou.common.bean.Result<java.util.List<com.leyou.item.inter.pojo.Brand>>
     * @createTime: 2020-03-07 10:54
     * @version: v.1.0
     */
    Result<List<Brand>> queryBrandsByCid(Long cid);

    /**
     * @Title: queryBrandById
     * @Description: 根据品牌id查询品牌信息
     * @author: zqq
     * @param bid 品牌id
     * @return: com.leyou.common.bean.Result<com.leyou.item.inter.pojo.Brand>
     * @createTime: 2020-03-08 10:24
     * @version: v.1.0
     */
    Result<Brand> queryBrandById(Long bid);

    /**
     * @Title: deleteBrand
     * @Description: 删除品牌信息
     * @author: zqq
     * @param id 品牌id
     * @return: com.leyou.common.bean.Result
     * @createTime: 2020-03-16 16:35
     * @version: v.1.0
     */
    Result deleteBrand(Long id);
}
